<div class="head-content">
    <h3>Daftar Format Input</h3>
    <div class="clear"></div>
</div>
<div class="sub-nav-content">
    <ul>
        <li><a href="{$config->site_url('input/opinputversions')}">&lt;&lt; Kembali ke daftar</a></li>
        <li><a href="{$config->site_url('input/opinputversions/edit/'|cat:$detail.input_id|default:'')}">Edit Versi</a></li>
        <li><a href="{$config->site_url('input/opinputversions/rows/'|cat:$result.input_id|default:'')}" class="active">Pengaturan Baris</a></li>
        {if !empty($jumlah_baris)}
        <li><a href="{$config->site_url('input/opinputversions/upload/'|cat:$result.input_id|default:'')}">Upload File</a></li>
        <li><a href="{$config->site_url('input/opinputversions/manage/'|cat:$result.input_id|default:'')}">Pengaturan Field</a></li>
        <li><a href="{$config->site_url('input/opinputversions/mapping/'|cat:$result.input_id|default:'')}">Pemetaan Field</a></li>
        {/if}
    </ul>
    <div class="clear"></div>
</div>
<div class="table-info-box">
    <h3>Detail Format</h3>
    <table class="table-info" width="100%">
        <tr>
            <td width="25%">Versi Format Input<br /><em>Input Versions</em> </td>
            <td width="25%"><b>{$result.input_version|default:''}</b></td>
            <td width="25%">Versi Format Output<br /><em>Output Versions</em> </td>
            <td width="25%"><b>{$result.output_version|default:''}</b></td>
        </tr>
        <tr>
            <td>Jenis Format <br /><em>Format Type</em> </td>
            <td><b>{$result.input_format_type|default:''}</b></td>
            <td>Jenis File <br /><em>File Type</em> </td>
            <td><b>{$result.input_file_type|default:''}</b></td>
        </tr>
    </table>
</div>
<div class="clear"></div>
<!-- notification template -->
{include file="base/templates/notification.html"}
<!-- end of notification template-->
<form action="{$config->site_url('input/opinputversions/process_rows_delete')}" method="post">
    <input type="hidden" name="input_id" value="{$result.input_id|default:''}" />
    <div class="button-nav-content">
        <a href="{$config->site_url('input/opinputversions/rows/'|cat:$result.input_id|default:'')}" class="active">List Data</a>
        <a href="{$config->site_url('input/opinputversions/rows_add/'|cat:$result.input_id|default:'')}"><img src="{$BASEURL}resource/doc/images/icon/add-icon.png" alt="" /> Add New</a>
        <div class="clear"></div>
    </div>
    <table class="table-view" width="100%">
        <tr>
            <th width="5%"></th>
            <th width="40%">Nomor Baris</th>
            <th width="40%">Jumlah Kolom</th>
            <th width="15%"></th>
        </tr>
        {foreach from=$rs_id key=no item=data}
        <tr {if ($no % 2) <> 0}class="blink-row"{/if}>
            <td align="center"><input type="checkbox" name="rows[]" value="{$data.row_number}" /></td>
            <td align="center">{$data.row_number}</td>
            <td align="center">{$data.total_column}</td>
            <td align="center">
                <a href="{$config->site_url({'input/opinputversions/rows_edit/'|cat:$result.input_id|cat:'/'|cat:$data.row_number})}" class="button-edit">Edit</a>
            </td>
        </tr>
        {foreachelse}
        <tr>
            <td colspan="4">Data not found</td>
        </tr>
        {/foreach}
        <tr>
            <td colspan="4"><input type="submit" value="Delete" /></td>
        </tr>
    </table>
</form>